package cn.edu.scau.cmi.zhangjunming.abstractFactory;

import cn.edu.scau.cmi.zhangjunming.simpleFactoryMethod.domain.Meat;

public abstract class AbstractFactory {

	public static AbstractFactory getFactory(String brand) {
		switch(brand) {
		case "Aonong": return new AonongFactory();
		case "Tianbang": return new TianbangFactory(); 
		case "Wens": return new WensFactory();
		default: return null;
		}
	}
	public abstract Meat getBeef();
	public abstract Meat getPork();
	public abstract Meat getChicken();
}
